const useSocket = (userid) => {
    const connection = () => {
        return new WebSocket(`ws://81.70.224.2:8003/koa/ws?user_id=${userid}&server_id=300`)
    }
    return connection;
}

export default useSocket